﻿<Window x:Class="PresetNameDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Preset Name" Height="150" Width="300"
        Background="{DynamicResource WindowBackgroundBrush}" WindowStyle="ToolWindow">
    <Grid Margin="10">
        <Grid.Resources>
            <Style TargetType="{x:Type Button}" 
                          BasedOn="{StaticResource {x:Type Button}}">
                <Setter Property="Margin" Value="0,10,0,0" />
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="60" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="45" />
        </Grid.RowDefinitions>
        <Label Content="Name:"></Label><TextBox Name="txtName" Grid.Column="1" Grid.Row="0"></TextBox>
        <Button Name="btnSave" Grid.Column="1" Width="100" HorizontalAlignment="Right" Grid.Row="1" Content="Save" Click="btnSave_Click"  />
    </Grid>
</Window>
